#include<iostream>
using namespace std;
#include<cmath>
int main()
{
	int n0,n1,n,x=0,y=0;
	cin>>n0>>n1>>n;
	int min=n0+n1;
	for(int i=1;i<n0 && n-i<n1 && n-i>0;i++)
	{
		if(n0%i==0 && n1%(n-i)==0)
		{
			int t=abs(n0/i-n1/(n-i));
			if(min>t)
			{
				min=t;
				x=i;
				y=n-i;
			}
		}
	}
	if(x && y)
	{
		cout<<x<<" "<<y;
	}
	else
	{
		cout<<"No Solution";
	}
	return 0;
}